module.exports = {
  lintOnSave: false,
  assetsDir: "static",
  productionSourceMap: false,
  publicPath: "/",
  outputDir: "./build",

  devServer: {
    proxy: {
      "^/api": {
        target: "http://localhost:8090",
        pathRewrite: {
          "^/api": "",
        },
        changeOrigin: true,
      },
      "^/java": {
        target: "http://513k3v0990.wicp.vip",
        pathRewrite: {
          "^/java": "",
        },
        changeOrigin: true,
      },
    },
  },
  configureWebpack: {
    resolve: {
      alias: {
        components: "@/components",
      },
    },
  },
};
